#include <catch2/catch.hpp>

#include "solution.hpp"

using namespace solution_838;

TEST_CASE("838. Push Dominoes", "[838]")
{

/* RR.L
 * //|\
 *
 * RR.L
 * //|\ */
CHECK(Solution().pushDominoes("RR.L") == "RR.L");

/* .L.R...LR..L..
 * |\|/|||\/||\||
 *
 * LL.RR.LLRRLL..
 * \\|//|\\//\\|| */
CHECK(Solution().pushDominoes(".L.R...LR..L..") == "LL.RR.LLRRLL..");

CHECK(Solution().pushDominoes(".LL..") == "LLL..");
CHECK(Solution().pushDominoes("..RR.") == "..RRR");

}
